
import request from '../request/request'

//编写方法“获取情话”,并将其暴露出去
export function testRequest() {
    // 当前URL示例: https://example.com/?name=John&age=30
    const urlParams = new URLSearchParams(window.location.search);
    // 获取单个参数
    const requestid = urlParams.get('requestid');

    return request({
        // url:"http://23.211.136.67/workflow/cerberuskun/aieventreport/getEventReportData.jsp",
        url:"/api/workflow/cerberuskun/aieventreport/getEventReportData.jsp",
        method: 'get',
        params: {
            requestid: requestid
        },
        // data: {
        //     firstName: 'Fred'
        // },
    })
    /* 
    或者写成
    return request.get('/one')
    */
}